﻿using Efcore_Test.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Efcore_Test.Data.config
{
    public class Articlexxxxx22Config : IEntityTypeConfiguration<Articlexxxxx22>
    {
        public void Configure(EntityTypeBuilder<Articlexxxxx22> builder)
        {
            builder.ToTable("Articlexxxxx22");
            builder.HasKey(e => e.Id); // 配置主键
            builder.Property(x => x.Title).HasMaxLength(100).IsUnicode();
        }
    }
}
